home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000350_news@newsmaster….columbia.edu _Mon Sep 15 11:31:46 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id LAA16547
for <kermit.misc@watsun.cc.columbia.edu>; Mon, 15 Sep 1997 11:31:43 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA22899
for kermit.misc@watsun; Mon, 15 Sep 1997 11:31:21 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: read line?
Date: 15 Sep 1997 15:31:19 GMT
Organization: Columbia University
Lines: 23
Message-ID: <5vjkc7$7de$1@apakabar.cc.columbia.edu>
References: <5vgnsl$qi@sjx-ixn11.ix.netcom.com>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:7673
In article <5vgnsl$qi@sjx-ixn11.ix.netcom.com>,
Jeff Lightfoot <jeffml@CHECK-SIG-FOR-ADDRESS.com> wrote:
:
: Ok, this has to be simple but...
:
: At the K95 prompt I can open a file, read a line, echo that line, read
: another ... everything works as expected.
:
: But if I read a line, use while success { echo \m(line), read \m(line) }
: I get the first line repeated for each of the lines in the file.
:
: This is supposed to work, but for the life of me, it won't happen.
:
Syntax problem. \m(xxx) is used to retrieve the value of xxx, and so is
not used in READ, DEFINE, ASSIGN, etc:
read line
while success {
echo \m(line)
read line
}
- Frank